<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/client/backgroundManagement/commons/global.jsp" %>
 
 <script type="text/javascript">

    $(function() {
        
        $('#projectTypeAddForm').form({
            url : '${path }/projectTypeController/add',
            onSubmit : function() {
                progressLoad();
                var isValid = $(this).form('validate');
                if (!isValid) {
                    progressClose();
                }
                return isValid;
            },
            success : function(result) {
                progressClose();
                result = $.parseJSON(result);
                if (result.success) {
                    parent.$.modalDialog.openner_dataGrid.datagrid('reload');//之所以能在这里调用到parent.$.modalDialog.openner_treeGrid这个对象，是因为organization.jsp页面预定义好了
                    parent.$.modalDialog.handler.dialog('close');
                }else{
                 	 console.log(result)
                	 alert(result.msg)
                }
            }
        });
        
    });
</script>
  
<div class="easyui-layout" data-options="fit:true,border:false">
    <div data-options="region:'center',border:false" title="" style="overflow: hidden;padding: 3px;">
        <form id="projectTypeAddForm" method="post">
            <table class="grid">
 
 	            <tr>
                    <td>项目类型名称</td>
                    <td>
	                    <input name="id" type="hidden"  >
	                  
	                    <input name="projectTypeName" type="text" placeholder="请输入名称" style="width: 250px"class="easyui-validatebox span2" data-options="required:true" />
                    </td>
                </tr>
                
                <tr>
                    <td>节点1名称</td>
                    <td>
	                    <input name="timeNodeName" type="text" placeholder="请输入名称" style="width: 318px"  class="easyui-validatebox span2" />
                    </td>
                     <td>节点周期</td>
                    <td>
	                    <input name="circle" type="text" placeholder="请输入周期" width="40"  class="easyui-numberbox"   />
                    </td>
                </tr>
                 
                                 <tr>
                    <td>节点2名称</td>
                    <td>
	                    <input name="timeNodeName" type="text" placeholder="请输入名称" style="width: 318px"  class="easyui-validatebox span2" />
                    </td>
                     <td>节点周期</td>
                    <td>
	                    <input name="circle" type="text" placeholder="请输入周期" width="40"  class="easyui-numberbox"   />
                    </td>
                </tr>
                                <tr>
                    <td>节点3名称</td>
                    <td>
	                    <input name="timeNodeName" type="text" placeholder="请输入名称" style="width: 318px"  class="easyui-validatebox span2" />
                    </td>
                     <td>节点周期</td>
                    <td>
	                    <input name="circle" type="text" placeholder="请输入周期" width="40"  class="easyui-numberbox"   />
                    </td>
                </tr>
                                <tr>
                    <td>节点4名称</td>
                    <td>
	                    <input name="timeNodeName" type="text" placeholder="请输入名称" style="width: 318px"  class="easyui-validatebox span2" />
                    </td>
                     <td>节点周期</td>
                    <td>
	                    <input name="circle" type="text" placeholder="请输入周期" width="40"  class="easyui-numberbox"   />
                    </td>
                </tr>
                                <tr>
                    <td>节点5名称</td>
                    <td>
	                    <input name="timeNodeName" type="text" placeholder="请输入名称" style="width: 318px"  class="easyui-validatebox span2" />
                    </td>
                     <td>节点周期</td>
                    <td>
	                    <input name="circle" type="text" placeholder="请输入周期" width="40"  class="easyui-numberbox"   />
                    </td>
                </tr>
                                <tr>
                    <td>节点6名称</td>
                    <td>
	                    <input name="timeNodeName" type="text" placeholder="请输入名称" style="width: 318px"  class="easyui-validatebox span2" />
                    </td>
                     <td>节点周期</td>
                    <td>
	                    <input name="circle" type="text" placeholder="请输入周期" width="40"  class="easyui-numberbox"   />
                    </td>
                </tr>
                                <tr>
                    <td>节点7名称</td>
                    <td>
	                    <input name="timeNodeName" type="text" placeholder="请输入名称" style="width: 318px"  class="easyui-validatebox span2" />
                    </td>
                     <td>节点周期</td>
                    <td>
	                    <input name="circle" type="text" placeholder="请输入周期" width="40"  class="easyui-numberbox"   />
                    </td>
                </tr>
                                <tr>
                    <td>节点8名称</td>
                    <td>
	                    <input name="timeNodeName" type="text" placeholder="请输入名称" style="width: 318px"  class="easyui-validatebox span2" />
                    </td>
                     <td>节点周期</td>
                    <td>
	                    <input name="circle" type="text" placeholder="请输入周期" width="40"  class="easyui-numberbox"   />
                    </td>
                </tr>
                                <tr>
                    <td>节点9名称</td>
                    <td>
	                    <input name="timeNodeName" type="text" placeholder="请输入名称" style="width: 318px"  class="easyui-validatebox span2" />
                    </td>
                     <td>节点周期</td>
                    <td>
	                    <input name="circle" type="text" placeholder="请输入周期" width="40"  class="easyui-numberbox"   />
                    </td>
                </tr>
                   <tr>
                    <td>节点10名称</td>
                    <td>
	                    <input name="timeNodeName" type="text" placeholder="请输入名称" style="width: 318px" class="easyui-validatebox span2" />
                    </td>
                     <td>节点周期</td>
                    <td>
	                    <input name="circle" type="text" placeholder="请输入周期" width="40"  class="easyui-numberbox"   />
                    </td>
                </tr>
                
                                   <tr>
                    <td>节点11名称</td>
                    <td>
	                    <input name="timeNodeName" type="text" placeholder="请输入名称" style="width: 318px" class="easyui-validatebox span2" />
                    </td>
                     <td>节点周期</td>
                    <td>
	                    <input name="circle" type="text" placeholder="请输入周期" width="40"  class="easyui-numberbox"   />
                    </td>
                </tr>
                
               <tr>
                    <td>节点12名称</td>
                    <td>
	                    <input name="timeNodeName" type="text" placeholder="请输入名称" style="width: 318px" class="easyui-validatebox span2" />
                    </td>
                     <td>节点周期</td>
                    <td>
	                    <input name="circle" type="text" placeholder="请输入周期" width="40"  class="easyui-numberbox"   />
                    </td>
                </tr>
                
            </table>
        </form>
    </div>
</div>